Accurate and Efficient Hyperbolic Tangent Activation Function on FPGA using the DCT Interpolation Filter

نویسندگان

  • Ahmed M. Abdelsalam
  • J. M. Pierre Langlois
  • Farida Cheriet
چکیده

Implementing an accurate and fast activation function with low cost is a crucial aspect to the implementation of Deep Neural Networks (DNNs) on FPGAs. We propose a highaccuracy approximation approach for the hyperbolic tangent activation function of artificial neurons in DNNs. It is based on the Discrete Cosine Transform Interpolation Filter (DCTIF). The proposed architecture combines simple arithmetic operations on stored samples of the hyperbolic tangent function and on input data. The proposed DCTIF implementation achieves two orders of magnitude greater precision than previous work while using the same or fewer computational resources. Various combinations of DCTIF parameters can be chosen to tradeoff the accuracy and complexity of the hyperbolic tangent function. In one case, the proposed architecture approximates the hyperbolic tangent activation function with 10 maximum error while requiring only 1.52 Kbits memory and 57 LUTs of a Virtex-7 FPGA. We also discuss how the activation function accuracy affects the performance of DNNs in terms of their training and testing accuracies. We show that a high accuracy approximation can be necessary in order to maintain the same DNN training and testing performances realized by the exact function.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Implementation of Knowledege Based Neural Network with Hyperbolic Tanget Function

Neural networks have a wide range of applications in analog and digital signal processing Nonlinear activation function is one of the main building blocks of artificial neural networks. Hyperbolic tangent and sigmoid are the most used nonlinear activation functions of NN.This project proposes a knowledge-based neural network (KBNN) modeling approach with new hyperbolic tangent function . The KB...

متن کامل

Effects of Non-uniform Suction, Heat Generation/Absorption and Chemical Reaction with Activation Energy on MHD Falkner-Skan Flow of Tangent Hyperbolic Nanofluid over a Stretching/Shrinking Eedge

In the present investigation, the magnetohydrodynamic Falkner-Skan flow of tangent hyperbolic nanofluids over a stretching/shrinking wedge with variable suction, internal heat generation/absorption and chemical reaction with activation energy have been scrutinized. Nanofluid model is composed of “Brownian motion’’ and “Thermophoresis’’. Transformed non-dimensional coupled non-linear equations a...

متن کامل

Universal Approximator Property of the Space of Hyperbolic Tangent Functions

In this paper, first the space of hyperbolic tangent functions is introduced and then the universal approximator property of this space is proved. In fact, by using this space, any nonlinear continuous function can be uniformly approximated with any degree of accuracy. Also, as an application, this space of functions is utilized to design feedback control for a nonlinear dynamical system.

متن کامل

Implementation of Hyperbolic Tangent Function to Estimate Size Distribution of Rock Fragmentation by Blasting in Open Pit Mines

Rock fragmentation is one of the desired results of rock blasting. So, controlling and predicting it, has direct effects on operational costs of mining. There are different ways that could be used to predict the size distribution of fragmented rocks. Mathematical relations have been widely used in these predictions. From among three proposed mathematical relations, one was selected in this stud...

متن کامل

INTERPOLATION BY HYPERBOLIC B-SPLINE FUNCTIONS

In this paper we present a new kind of B-splines, called hyperbolic B-splines generated over the space spanned by hyperbolic functions and we use it to interpolate an arbitrary function on a set of points. Numerical tests for illustrating hyperbolic B-spline are presented.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • CoRR

دوره abs/1609.07750  شماره 

صفحات  -

تاریخ انتشار 2016